<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>Title</title>
    </head>
    <body>
        <div id="app" >
            您的生日为：{{getBirthday()}}

        </div>
        <!--导包一定要双标签，不能单标签-->
        <script src="./node_modules/vue/dist/vue.js"></script>

        <script type="text/javascript">

            var vue = new Vue({
                el:"#app",
                data:{
                    birthday:1565588398790 // 毫秒值
                },
                methods:{
                    getBirthday() {
                      var dd = new Date(this.birthday);
                      return dd.getFullYear()+"-"+(dd.getMonth()+1)+"-"+dd.getDate();
                    }
                }
            })
        </script>
    </body>
</html>